package com.bonjour.work.utils;

import java.util.Calendar;
import java.util.Date;

public class DateUtils  {
    /**
     * 在给定的 Date 时间加 months 月
     **/
    public static Date addMonths(final Date date, int months) {
        Calendar calendar = Calendar.getInstance();
        calendar.setTime(date);
        calendar.add(Calendar.MONTH, months);
        return calendar.getTime();
    }
}
